/* ==========================================================================
   MBOT VENTURES — COMPLETE MODERN DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;

  /* Apple Light Liquid Glass Palette */
  --liquid-glass-bg: rgba(255, 255, 255, 0.72);
  --liquid-glass-border: rgba(255, 255, 255, 0.85);
  --liquid-glass-inner-bevel: inset 0 1px 1px 0 rgba(255, 255, 255, 0.95),
                             inset 0 -1px 2px 0 rgba(0, 0, 0, 0.04);
  --liquid-glass-shadow: 0 20px 40px -15px rgba(0, 102, 255, 0.08),
                         0 10px 25px -5px rgba(15, 23, 42, 0.08),
                         0 0 1px 1px rgba(0, 0, 0, 0.04);

  --text-main: #090e17;
  --text-muted: #526071;
  --text-dim: #94a3b8;
  --border-clean: #e2e8f0;

  --accent-blue: #0066FF;
  --accent-blue-hover: #0052cc;
  --accent-green: #10b981;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-red: #ef4444;

  --slider-track: rgba(0, 0, 0, 0.06);
  --slider-knob: #ffffff;

  --dock-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
  --card-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.05);
  --card-hover-shadow: 0 20px 40px -8px rgba(0, 102, 255, 0.12);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  --bg-body: #070b12;
  --bg-surface: #0e1420;
  --bg-subtle: #172132;
  --bg-card: #121a29;

  /* Apple Dark Liquid Glass Palette */
  --liquid-glass-bg: rgba(15, 23, 42, 0.65);
  --liquid-glass-border: rgba(255, 255, 255, 0.14);
  --liquid-glass-inner-bevel: inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.35),
                             inset 0 -1px 2px 0 rgba(0, 0, 0, 0.5);
  --liquid-glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75),
                         0 12px 24px -6px rgba(0, 0, 0, 0.5),
                         0 0 0 1px rgba(255, 255, 255, 0.06);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-clean: #1f2b40;

  --slider-track: rgba(255, 255, 255, 0.1);
  --slider-knob: #0f172a;

  --dock-shadow: 0 16px 40px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --card-shadow: 0 8px 30px -4px rgba(0, 0, 0, 0.4);
  --card-hover-shadow: 0 20px 40px -8px rgba(0, 102, 255, 0.3);
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  word-spacing: 0.10em;
}

/* Force identical scrollbar behavior on all pages so viewport width never jumps */
html { 
  scroll-behavior: smooth;
  overflow-y: scroll !important;
  overflow-x: hidden !important; /* Add this */
  scrollbar-gutter: stable;
  width: 100%; /* Add this */
  max-width: 100vw; /* Add this */
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 14.5px;
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden !important; /* Add !important */
  width: 100%; /* Add this */
  max-width: 100vw; /* Add this */
  padding-top: 5.5rem;
}

/* Solutions page desktop fullscreen slider reset */
@media (min-width: 993px) {
  body:has(#sliderViewport) {
    padding-top: 0;
  }
}

.main-shell {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

/* ================= SCROLL REVEAL ENGINE ================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ================= FLOATING ISLAND LIQUID GLASS NAV ================= */
/* Strictly locked layout: will NEVER resize or jump between pages */
.nav-floating-wrapper {
  position: fixed !important;
  top: 1.25rem !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  right: auto !important;
  margin: 0 !important;
  z-index: 99999 !important;
  width: min(1200px, calc(100% - 3rem)) !important; /* Change vw to % */
  max-width: 1200px !important;
  min-width: min(1200px, calc(100% - 3rem)) !important; /* Change vw to % */
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
}

.navbar-pill {
  pointer-events: auto;
  position: relative;
  width: 100% !important;
  height: 64px !important;
  background: var(--liquid-glass-bg);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--liquid-glass-border);
  box-shadow: var(--liquid-glass-inner-bevel), var(--liquid-glass-shadow);
  border-radius: 9999px;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  overflow: visible;
  transition: none !important;
}

/* Subtle Top Glass Refraction Sheen */
.navbar-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1.5px;
  border-radius: 9999px;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.8) 25%, 
    rgba(255, 255, 255, 0.95) 50%, 
    rgba(255, 255, 255, 0.8) 75%, 
    transparent 100%
  );
  pointer-events: none;
  opacity: 0.65;
}

[data-theme="dark"] .navbar-pill::before {
  opacity: 0.35;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(56, 189, 248, 0.4) 30%, 
    rgba(255, 255, 255, 0.8) 50%, 
    rgba(56, 189, 248, 0.4) 70%, 
    transparent 100%
  );
}

.navbar-pill:hover {
  box-shadow: var(--liquid-glass-inner-bevel),
              0 28px 60px -15px rgba(0, 102, 255, 0.16),
              0 14px 28px -6px rgba(0, 0, 0, 0.2);
}

/* Strict flex lock so children never stretch or shrink */
.nav-brand,
.nav-center-links,
.nav-tools {
  flex-shrink: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-cube {
  background: var(--text-main);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.nav-brand:hover .brand-cube {
  transform: scale(1.05);
}

.brand-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.brand-fallback-mark {
  color: var(--bg-body);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
}

.brand-name-group {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.brand-name {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.brand-sub {
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.nav-center-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  height: 100%;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 600 !important;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-link.active, .nav-link:hover { 
  color: var(--accent-blue); 
}

/* ================= APPLE-LIKE DROPDOWN FROSTED BUBBLE ================= */
.dropdown-root { 
  position: relative; 
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-root::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 18px;
  background: transparent;
}

.dropdown-bubble {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  background: var(--liquid-glass-bg);
  backdrop-filter: blur(36px) saturate(210%);
  -webkit-backdrop-filter: blur(36px) saturate(210%);
  border: 1px solid var(--liquid-glass-border);
  box-shadow: var(--liquid-glass-inner-bevel), 0 24px 60px -10px rgba(0, 0, 0, 0.45);
  border-radius: 20px;
  padding: 0.75rem 0.6rem;
  min-width: 290px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 100000;
}

.dropdown-root:hover .dropdown-bubble,
.dropdown-root:focus-within .dropdown-bubble {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.drop-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  border-radius: 12px;
  transition: background 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s ease;
}

.drop-item:hover { 
  background: rgba(0, 102, 255, 0.08);
  transform: translateX(3px);
}

[data-theme="dark"] .drop-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.drop-icon-raw {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drop-text-col {
  display: flex;
  flex-direction: column;
}

.drop-text-col strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.drop-sub-mono {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin-top: 2px;
}

/* ================= PILL SLIDER SWITCH (LIGHT/DARK) ================= */
.theme-slider-switch {
  width: 58px;
  height: 28px;
  background: var(--slider-track);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  padding: 2px;
  transition: background 0.25s ease;
  user-select: none;
  display: flex;
  align-items: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.slider-knob {
  width: 24px;
  height: 24px;
  background: var(--slider-knob);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transform: translateX(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .slider-knob {
  transform: translateX(30px);
}

.sun-icon-svg { display: block; }
.moon-icon-svg { display: none; }

[data-theme="dark"] .sun-icon-svg { display: none; }
[data-theme="dark"] .moon-icon-svg { display: block; stroke: #38bdf8; }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.telemetry-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 600;
}

.blinking-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.btn-pill-cta {
  background: var(--accent-blue);
  color: #fff;
  border-radius: 9999px;
  padding: 0.6rem 1.3rem;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-pill-cta:hover { 
  background: var(--accent-blue-hover); 
}

.mobile-hamburger-btn {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mobile-hamburger-btn span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 82%;
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-clean);
  z-index: 100000;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.mobile-drawer.open { 
  left: 0; 
}

.drawer-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 2rem; 
}

.close-drawer-btn { 
  background: none; 
  border: none; 
  font-size: 1.4rem; 
  color: var(--text-main); 
  cursor: pointer; 
}

.drawer-links { 
  display: flex; 
  flex-direction: column; 
  gap: 1.2rem; 
}

.d-link { 
  text-decoration: none; 
  font-size: 1.1rem; 
  font-weight: 700; 
  color: var(--text-main); 
}

.drawer-footer { 
  margin-top: auto; 
}

.full-width { 
  width: 100%; 
  justify-content: center; 
}

/* ==========================================================================
   APPLE LIQUID GLASS FLOATING DECK FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 3rem 0 2.5rem 0;
  background: transparent;
}

.footer-glass-deck {
  position: relative;
  width: 100%;
  background: var(--liquid-glass-bg);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--liquid-glass-border);
  box-shadow: var(--liquid-glass-inner-bevel), var(--liquid-glass-shadow);
  border-radius: 28px;
  padding: 3rem 3rem 1.8rem 3rem;
  box-sizing: border-box;
}

/* Subtle Top Glass Refraction Sheen */
.footer-glass-deck::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1.5px;
  border-radius: 9999px;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.9) 30%, 
    rgba(255, 255, 255, 0.95) 50%, 
    rgba(255, 255, 255, 0.9) 70%, 
    transparent 100%
  );
  pointer-events: none;
  opacity: 0.65;
}

[data-theme="dark"] .footer-glass-deck::before {
  opacity: 0.35;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(56, 189, 248, 0.4) 30%, 
    rgba(255, 255, 255, 0.8) 50%, 
    rgba(56, 189, 248, 0.4) 70%, 
    transparent 100%
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1fr 1.5fr;
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.footer-brand-col {
  padding-right: 1rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0 0 1.4rem 0;
}

.pedigree-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.04em;
}

.pedigree-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link-list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.footer-link-list a:hover {
  color: var(--accent-blue);
  transform: translateX(3px);
}

/* Shared MiBOT brand logo */
.brand-full-logo { width:112px; height:auto; max-height:45px; object-fit:contain; object-position:left center; display:block; }
.footer-brand-logo { width:150px; height:auto; max-height:60px; object-fit:contain; object-position:left center; display:block; }

/* Presence Chips Grid */
.presence-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.presence-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-clean);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  transition: all 0.2s ease;
}

[data-theme="dark"] .presence-chip {
  background: rgba(255, 255, 255, 0.03);
}

.presence-chip:hover {
  border-color: rgba(0, 102, 255, 0.4);
  transform: translateY(-2px);
}

.presence-chip strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.2;
}

.presence-chip small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 1px;
}

/* Contact Strip Inside Presence */
.footer-quick-touch {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border-clean);
}

.footer-touch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

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

/* Bottom Compliance Deck */
.footer-deck-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-clean);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.deck-copyright {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.live-status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

.deck-certs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 992px) {
  .nav-center-links, .telemetry-pill { display: none; }
  .mobile-hamburger-btn { display: flex; }
  
  .nav-floating-wrapper {
    top: 0.75rem !important;
    width: calc(100% - 1.5rem) !important; /* Change vw to % */
    min-width: calc(100% - 1.5rem) !important; /* Change vw to % */
  }
  
  .navbar-pill {
    height: 56px !important;
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  .footer-glass-deck {
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .presence-chips-grid {
    grid-template-columns: 1fr;
  }
  .footer-quick-touch {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .footer-deck-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}