/* ==========================================================================
   VECTIS CLOUD - LIGHT MODE COMPONENT LIBRARY
   Impeccable Visual Polish • Enterprise Light Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NAVIGATION HEADER & MEGA-MENU
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-symbol {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #2563EB 0%, #0F172A 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  position: relative;
}

.logo-symbol svg {
  width: 18px;
  height: 18px;
  color: #FFFFFF;
}

.brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  color: var(--blue-primary);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 0.25rem;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.04);
}

.nav-link.active {
  color: var(--blue-primary);
  font-weight: 600;
}

.nav-link svg.chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link svg.chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.dropdown-link:hover {
  background: var(--bg-primary);
}

.dropdown-icon {
  width: 32px;
  height: 32px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  flex-shrink: 0;
}

.dropdown-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.dropdown-desc {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.quick-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.85rem;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.825rem;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.quick-search-btn:hover {
  border-color: var(--blue-primary);
  color: var(--text-primary);
}

.quick-search-btn kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.noc-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.785rem;
  font-family: var(--font-mono);
  color: var(--emerald-primary);
  background: var(--emerald-dim);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.noc-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.4);
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-smooth);
  z-index: 999;
  overflow-y: auto;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
}

.mobile-nav-link.active {
  color: var(--blue-primary);
  border-color: var(--blue-border);
  background: var(--blue-dim);
}

/* --------------------------------------------------------------------------
   2. BUTTONS & INTERACTIVE CONTROLS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: var(--blue-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.25);
  font-weight: 600;
}

.btn-primary:hover {
  background: #1D4ED8;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #FFFFFF;
  border-color: var(--border-medium);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-outline-blue {
  background: transparent;
  border-color: var(--blue-border);
  color: var(--blue-primary);
}

.btn-outline-blue:hover {
  background: var(--blue-dim);
  border-color: var(--blue-primary);
}

.btn-dark {
  background: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.btn-dark:hover {
  background: #1E293B;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.95rem 1.95rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   3. CARDS & BENTO PANELS
   -------------------------------------------------------------------------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.card-glow-blue:hover {
  border-color: var(--blue-border);
  box-shadow: var(--shadow-md), 0 0 20px rgba(37, 99, 235, 0.1);
}

.card-glow-violet:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-md), 0 0 20px rgba(124, 58, 237, 0.1);
}

.card-glow-emerald:hover {
  border-color: rgba(5, 150, 105, 0.3);
  box-shadow: var(--shadow-md), 0 0 20px rgba(5, 150, 105, 0.1);
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 1024px) {
  .col-4, .col-5, .col-6, .col-7, .col-8 {
    grid-column: span 12;
  }
}

/* --------------------------------------------------------------------------
   4. LIVE TELEMETRY STAT BAR
   -------------------------------------------------------------------------- */

.telemetry-bar {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .telemetry-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.25rem;
    gap: 1.25rem;
  }
}

.telemetry-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.telemetry-label {
  font-size: 0.785rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.telemetry-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.telemetry-unit {
  font-size: 0.875rem;
  color: var(--blue-primary);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. INTERACTIVE TERMINAL
   -------------------------------------------------------------------------- */

.terminal-window {
  background: #0B0F19;
  border: 1px solid #1E293B;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background: #111827;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1F2937;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.terminal-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.terminal-tab-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.terminal-tab-btn.active, .terminal-tab-btn:hover {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.875rem;
  color: #E2E8F0;
  line-height: 1.7;
  max-height: 380px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 0.45rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.prompt-symbol {
  color: #38BDF8;
  font-weight: 700;
  user-select: none;
}

.term-cmd { color: #FFFFFF; font-weight: 600; }
.term-success { color: #34D399; font-weight: 600; }
.term-cyan { color: #38BDF8; }
.term-muted { color: #64748B; }
.term-purple { color: #C084FC; }

.term-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.term-input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #FFFFFF;
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. INTERACTIVE PRICING & ROI CALCULATOR
   -------------------------------------------------------------------------- */

.calc-box {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
}

.slider-group {
  margin-bottom: 2rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.slider-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.slider-value {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-primary);
}

.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  outline: none;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  cursor: pointer;
  border: 2px solid #FFFFFF;
  transition: transform var(--transition-fast);
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-summary-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.savings-banner {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   7. BENCHMARK COMPARATIVE BARS
   -------------------------------------------------------------------------- */

.benchmark-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.bm-row {
  margin-bottom: 1.25rem;
}

.bm-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.45rem;
}

.bm-platform {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-primary);
}

.bm-val {
  font-family: var(--font-mono);
  font-weight: 700;
}

.bm-bar-track {
  width: 100%;
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bm-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-vectis {
  background: linear-gradient(90deg, #2563EB, #0284C7);
}

.fill-competitor {
  background: #94A3B8;
}

/* --------------------------------------------------------------------------
   8. MODALS & TOASTS
   -------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  padding: 1.5rem;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform var(--transition-fast);
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-xs);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.modal-body {
  padding: 1.75rem;
  max-height: 75vh;
  overflow-y: auto;
}

/* Toast Engine */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-left: 4px solid var(--blue-primary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 320px;
  pointer-events: auto;
  animation: floatAnim 400ms ease forwards;
}

.toast.toast-success { border-left-color: var(--emerald-primary); }
.toast.toast-error { border-left-color: var(--rose-primary); }

/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  padding-top: 5rem;
  padding-bottom: 3rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--blue-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.us-address-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.825rem;
  background: var(--bg-tertiary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
