/* Vida Tech — shared styles, loaded on every page */

html, body { background: #fcf8ff; color: #1b192c; font-family: 'Inter', system-ui, sans-serif; }
body { overflow-x: hidden; }

.organic-gradient {
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(110, 71, 255, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 30%, rgba(255, 138, 101, 0.08) 0%, transparent 55%),
    linear-gradient(135deg, #fcf8ff 0%, #f6f1ff 100%);
}

.liquid-blur { filter: blur(120px); opacity: 0.4; mix-blend-mode: multiply; }

.glass-morphism {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.tactile-card {
  background: #ffffff;
  border: 1px solid #e4dffa;
  box-shadow: 0 4px 0 0 #e4dffa;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tactile-card:hover { transform: translateY(-2px); box-shadow: 0 8px 0 0 #e4dffa; }
.tactile-card--featured {
  background: linear-gradient(135deg, #ffffff 0%, #f6f1ff 100%);
  border: 1px solid #6e47ff;
  box-shadow: 0 4px 0 0 #6e47ff;
}
.tactile-card--featured:hover { box-shadow: 0 8px 0 0 #6e47ff; }
.tactile-card--dark {
  background: linear-gradient(135deg, #1b192c 0%, #0a0a14 100%);
  border: 1px solid #2a2742;
  box-shadow: 0 4px 0 0 #2a2742;
  color: #f3eeff;
}
.tactile-card--dark:hover { box-shadow: 0 8px 0 0 #2a2742; }

.floating-element { animation: float 6s ease-in-out infinite; will-change: transform; }

.btn-primary {
  background: #6e47ff;
  color: white;
  box-shadow: 0 8px 24px -8px rgba(110, 71, 255, 0.45);
  transition: all 0.25s cubic-bezier(.22,1,.36,1);
}
.btn-primary:hover { background: #5523e6; transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 36px -8px rgba(110, 71, 255, 0.55); }

.btn-ghost {
  background: #ffffff;
  color: #1b192c;
  border: 1px solid #c9c3d9;
  transition: all 0.2s cubic-bezier(.22,1,.36,1);
}
.btn-ghost:hover { background: #f6f1ff; transform: translateY(-1px); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(.22,1,.36,1), transform 0.9s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px;
  background: rgba(233, 227, 255, 0.55);
  border: 1px solid rgba(110, 71, 255, 0.12);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #6e47ff;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; background: #6e47ff; border-radius: 50%; box-shadow: 0 0 8px rgba(110, 71, 255, 0.6); }

.founder-frame {
  position: relative;
  border-radius: 0 0 0 4rem;
  overflow: hidden;
  box-shadow: 0 32px 80px -24px rgba(110, 71, 255, 0.35);
  background:
    radial-gradient(ellipse at 30% 20%, #e4dffa 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 138, 101, 0.18) 0%, transparent 50%),
    linear-gradient(135deg, #f6f1ff 0%, #eae5ff 100%);
  width: 100%; height: 100%; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
}
.founder-frame img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.founder-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(110, 71, 255, 0.10) 100%);
  pointer-events: none;
}

.dark-accent {
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(110, 71, 255, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 80% 70%, rgba(67, 33, 181, 0.30) 0%, transparent 60%),
    linear-gradient(180deg, #1b192c 0%, #0a0a14 100%);
  color: #f3eeff;
}
.dark-accent .eyebrow {
  background: rgba(110, 71, 255, 0.10);
  border-color: rgba(110, 71, 255, 0.30);
  color: #cabeff;
}

.timeline-rail {
  position: absolute;
  top: 28px; left: 28px; right: 28px; height: 2px;
  background: linear-gradient(90deg, #6e47ff 0%, #c9c3d9 100%);
  z-index: 0;
}
@media (max-width: 1024px) { .timeline-rail { display: none; } }

.timeline-dot {
  width: 56px; height: 56px;
  background: #ffffff;
  border: 2px solid #6e47ff;
  box-shadow: 0 4px 0 0 #e4dffa;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 800;
  color: #6e47ff; font-size: 1.15rem;
  position: relative; z-index: 1;
}

.marquee-mask {
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* Active nav state */
.nav-link { color: #484456; }
.nav-link:hover { color: #6e47ff; }
.nav-link[aria-current="page"] { color: #6e47ff; position: relative; }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: #6e47ff;
  border-radius: 2px;
}

.input {
  background: #ffffff;
  border: 1px solid #c9c3d9;
  border-radius: 0.75rem;
  padding: 14px 16px;
  color: #1b192c;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { outline: none; border-color: #6e47ff; box-shadow: 0 0 0 4px rgba(110, 71, 255, 0.10); }
.input::placeholder { color: #797488; }

::-webkit-scrollbar { width: 10px; background: #f6f1ff; }
::-webkit-scrollbar-thumb { background: rgba(110, 71, 255, 0.30); border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  .floating-element, .liquid-blur, [class*="animate-"] { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== CHAT WIDGET ===== */
#vt-chat-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  font-family: 'Inter', system-ui, sans-serif;
}

#vt-chat-launcher {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6e47ff 0%, #5523e6 100%);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px -8px rgba(110, 71, 255, 0.5), 0 0 0 6px rgba(110, 71, 255, 0.08);
  transition: all 0.25s cubic-bezier(.22,1,.36,1);
}
#vt-chat-launcher:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 16px 40px -8px rgba(110, 71, 255, 0.6), 0 0 0 8px rgba(110, 71, 255, 0.10); }
#vt-chat-launcher .vt-icon { font-size: 26px; }
#vt-chat-launcher .vt-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: #FF8A65;
  color: white;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  border: 2px solid white;
  display: flex; align-items: center; justify-content: center;
}

#vt-chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border: 1px solid #e4dffa;
  border-radius: 1.5rem;
  box-shadow: 0 32px 80px -16px rgba(27, 25, 44, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: vtChatOpen 0.3s cubic-bezier(.22,1,.36,1);
}
#vt-chat-panel[hidden] { display: none !important; }
@keyframes vtChatOpen {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

#vt-chat-panel header {
  background: linear-gradient(135deg, #1b192c 0%, #4321B5 100%);
  color: #f3eeff;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
#vt-chat-panel .vt-avatar {
  width: 40px; height: 40px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; letter-spacing: -0.02em;
  font-family: 'Manrope', sans-serif;
}
#vt-chat-panel .vt-title { font-weight: 700; font-size: 15px; line-height: 1.1; }
#vt-chat-panel .vt-status {
  font-size: 11px;
  opacity: 0.75;
  display: flex; align-items: center; gap: 5px;
  margin-top: 3px;
}
#vt-chat-panel .vt-status::before {
  content: '';
  width: 7px; height: 7px;
  background: #34d399;
  border-radius: 9999px;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}
#vt-chat-panel .vt-close {
  margin-left: auto;
  background: rgba(255,255,255,0.10);
  border: none;
  color: white;
  width: 30px; height: 30px;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
#vt-chat-panel .vt-close:hover { background: rgba(255,255,255,0.20); }

#vt-chat-thread {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fcf8ff;
}
#vt-chat-thread .vt-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 1.1rem;
  font-size: 14px;
  line-height: 1.45;
  animation: vtMsgIn 0.25s cubic-bezier(.22,1,.36,1);
}
@keyframes vtMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
#vt-chat-thread .vt-msg-team {
  background: #ffffff;
  border: 1px solid #e4dffa;
  border-bottom-left-radius: 0.3rem;
  align-self: flex-start;
  color: #1b192c;
}
#vt-chat-thread .vt-msg-user {
  background: linear-gradient(135deg, #6e47ff 0%, #5523e6 100%);
  color: white;
  border-bottom-right-radius: 0.3rem;
  align-self: flex-end;
}
#vt-chat-thread .vt-msg-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6e47ff;
  margin-bottom: 3px;
}
#vt-chat-thread .vt-typing {
  display: inline-flex; gap: 4px; align-items: center; padding: 4px 0;
}
#vt-chat-thread .vt-typing span {
  width: 6px; height: 6px; background: #797488; border-radius: 9999px;
  animation: vtTypingBounce 1.2s infinite ease-in-out;
}
#vt-chat-thread .vt-typing span:nth-child(2) { animation-delay: 0.15s; }
#vt-chat-thread .vt-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes vtTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

#vt-chat-form {
  border-top: 1px solid #e4dffa;
  padding: 12px 14px;
  background: white;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}
#vt-chat-form textarea {
  flex: 1;
  resize: none;
  border: 1px solid #c9c3d9;
  border-radius: 1rem;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  max-height: 100px;
  min-height: 40px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fcf8ff;
}
#vt-chat-form textarea:focus { border-color: #6e47ff; box-shadow: 0 0 0 4px rgba(110, 71, 255, 0.10); }
#vt-chat-form button {
  background: linear-gradient(135deg, #6e47ff 0%, #5523e6 100%);
  color: white;
  border: none;
  border-radius: 9999px;
  width: 40px; height: 40px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
#vt-chat-form button:hover { transform: scale(1.05); }
#vt-chat-form button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

#vt-chat-disclaimer {
  font-size: 10px;
  text-align: center;
  color: #797488;
  padding: 0 14px 10px;
  background: white;
}

@media (max-width: 480px) {
  #vt-chat-root { bottom: 16px; right: 16px; }
  #vt-chat-panel {
    width: calc(100vw - 32px);
    height: calc(100vh - 100px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #vt-chat-panel, .vt-msg, .vt-typing span { animation: none !important; }
}

/* ===== BRAND GRADIENT (teal → blue → purple) ===== */
.brand-gradient {
  background: linear-gradient(90deg, #28C6C8 0%, #2E6FE8 50%, #8A3FF2 100%);
}
.brand-gradient-text {
  background: linear-gradient(90deg, #28C6C8 0%, #2E6FE8 50%, #8A3FF2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.brand-gradient-border {
  border-image: linear-gradient(90deg, #28C6C8 0%, #2E6FE8 50%, #8A3FF2 100%) 1;
}
.brand-gradient-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #28C6C8 15%, #2E6FE8 50%, #8A3FF2 85%, transparent 100%);
}

/* Logo image inside nav */
.nav-logo { height: 28px; width: auto; display: block; }

/* Home split-hero: clear the fixed nav on desktop so it doesn't overlap the
   founder image / headline (mobile already clears it via the column's top padding). */
@media (min-width: 1024px) {
  #home-hero { padding-top: 7.5rem; }
}

/* ==========================================================================
   Hero CRM mockup — non-functional AXIS·OS dashboard template
   ========================================================================== */
.crm-window {
  position: absolute; inset: 0;
  display: flex;
  background: #ffffff;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  text-align: left;
}
/* Left icon rail */
.crm-rail {
  flex: 0 0 64px;
  background: #15131f;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 0; gap: 4px;
}
.crm-rail-logo { width: 30px; height: 30px; margin-bottom: 14px; opacity: .95; }
.crm-rail-item {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.40);
}
.crm-rail-item .material-symbols-outlined { font-size: 21px; }
.crm-rail-item.active { background: rgba(110,71,255,0.24); color: #bcacff; }
.crm-rail-spacer { flex: 1; }

/* Main panel */
.crm-main { flex: 1; min-width: 0; background: #fbfaff; display: flex; flex-direction: column; padding: 24px; gap: 15px; overflow: hidden; }
.crm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.crm-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 20px; color: #1b192c; letter-spacing: -0.015em; }
.crm-sub { font-size: 11.5px; color: #6b6580; margin-top: 3px; display: flex; align-items: center; gap: 7px; }
.crm-live { display: inline-flex; align-items: center; gap: 5px; color: #16a34a; font-weight: 700; }
.crm-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: crmPulse 2s infinite; }
@keyframes crmPulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.45)} 70%{box-shadow:0 0 0 7px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }
.crm-head-right { display: flex; align-items: center; gap: 7px; flex: none; }
.crm-pill { font-size: 10px; font-weight: 700; color: #6b6580; background: #fff; border: 1px solid #e4dffa; border-radius: 999px; padding: 4px 9px; }
.crm-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#28C6C8,#2E6FE8 50%,#8A3FF2); flex: none; }

/* KPI grid */
.crm-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.crm-kpi { background: #fff; border: 1px solid #ece7fa; border-radius: 14px; padding: 13px 15px; box-shadow: 0 1px 0 rgba(27,25,44,0.03); }
.crm-kpi .lbl { font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8b86a0; }
.crm-kpi .val { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 23px; color: #1b192c; margin-top: 4px; letter-spacing: -0.02em; line-height: 1; }
.crm-kpi .delta { font-size: 11px; font-weight: 700; margin-top: 6px; display: inline-flex; align-items: center; gap: 1px; }
.crm-kpi .delta.up { color: #16a34a; }
.crm-kpi .delta.down { color: #e0556b; }
.crm-kpi .delta .material-symbols-outlined { font-size: 15px; }

/* Revenue chart */
.crm-chart { background: #fff; border: 1px solid #ece7fa; border-radius: 14px; padding: 14px 16px 10px; box-shadow: 0 1px 0 rgba(27,25,44,0.03); }
.crm-chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.crm-chart-lbl { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #8b86a0; }
.crm-chart-val { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; color: #1b192c; display: inline-flex; align-items: baseline; }
.crm-chart-num { transition: color .25s ease; }
.crm-chart-up { font-size: 11px; font-weight: 700; color: #16a34a; margin-left: 5px; }
.crm-chart svg { width: 100%; height: 62px; display: block; }

/* Activity rows */
.crm-rows { display: flex; flex-direction: column; gap: 8px; }
.crm-row { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid #ece7fa; border-radius: 12px; padding: 9px 13px; }
.crm-row .ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; }
.crm-row .ic .material-symbols-outlined { font-size: 17px; }
.crm-row .ic.g { background: rgba(34,197,94,.12); color: #16a34a; }
.crm-row .ic.p { background: rgba(110,71,255,.12); color: #6e47ff; }
.crm-row .ic.a { background: rgba(224,85,107,.12); color: #e0556b; }
.crm-row .tx { flex: 1; min-width: 0; }
.crm-row .tx .t { font-size: 12.5px; font-weight: 600; color: #1b192c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-row .tx .s { font-size: 10.5px; color: #8b86a0; }
.crm-row .amt { font-family:'Manrope',sans-serif; font-weight: 800; font-size: 12.5px; color: #1b192c; flex: none; }

/* Floating highlight card (breaks the frame for depth) */
.crm-float {
  position: absolute; z-index: 20; left: -18px; bottom: 38px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 16px; padding: 13px 16px;
  box-shadow: 0 24px 50px -16px rgba(27,25,44,0.4);
  display: flex; align-items: center; gap: 12px;
}
.crm-float .ico { width: 38px; height: 38px; border-radius: 11px; background: rgba(34,197,94,.14); color: #16a34a; display: flex; align-items: center; justify-content: center; flex: none; }
.crm-float .ttl { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8b86a0; }
.crm-float .big { font-family:'Manrope',sans-serif; font-weight: 800; font-size: 17px; color: #1b192c; letter-spacing: -0.01em; }

@media (max-width: 1023px) {
  .crm-main { padding: 16px 17px; gap: 12px; }
  .crm-kpi { padding: 11px 13px; }
  .crm-kpi .val { font-size: 20px; }
  .crm-float { left: 10px; bottom: 16px; }
}
@media (max-width: 400px) {
  .crm-rail { flex-basis: 50px; }
  .crm-kpi .val { font-size: 18px; }
}

/* ---- Looped live demo (animation) ---- */
.crm-feed { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 85%, transparent 100%); }
.crm-feed-track { display: flex; flex-direction: column; animation: crmFeedScroll 21s linear infinite; will-change: transform; }
.crm-feed-track .crm-row { margin-bottom: 8px; }
@keyframes crmFeedScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
/* fresh-event emphasis: the row entering the top edge briefly glows */
.crm-row { transition: box-shadow .4s ease; }

/* live value tick flash (KPI cards + chart card) */
.crm-kpi.flash, .crm-chart.flash { animation: crmFlash 1s ease; }
@keyframes crmFlash {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
  22% { box-shadow: 0 0 0 3px rgba(34,197,94,0.18); background: #f4fdf7; }
  100% { box-shadow: 0 1px 0 rgba(27,25,44,0.03); }
}
.crm-kpi .val { transition: color .25s ease; }
.crm-kpi.flash .val, .crm-chart.flash .crm-chart-num { color: #16a34a; }

/* pulsing "current value" dot at the end of the revenue line */
.crm-dot { transform-box: fill-box; transform-origin: center; animation: crmDot 2.4s ease-in-out infinite; }
.crm-dot-ring { transform-box: fill-box; transform-origin: center; animation: crmDotRing 2.4s ease-out infinite; }
@keyframes crmDot { 0%,100% { opacity: 1; } 50% { opacity: .65; } }
@keyframes crmDotRing { 0% { transform: scale(1); opacity: .5; } 80%,100% { transform: scale(3.4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .crm-feed-track { animation: none; }
  .crm-feed { -webkit-mask-image: none; mask-image: none; }
  .crm-dot, .crm-dot-ring { animation: none; }
}

/* ---- Swipe carousel between the two demos (AXIS·OS ⇄ Workstation) ---- */
.crm-carousel { position: absolute; inset: 0; overflow: hidden; }
.crm-track { display: flex; width: 100%; height: 100%; transition: transform .75s cubic-bezier(.7, 0, .18, 1); }
.crm-slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative; }
.crm-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 30; }
.crm-dot-ind { width: 7px; height: 7px; border-radius: 999px; background: rgba(27, 25, 44, 0.18); transition: width .35s ease, background .35s ease; }
.crm-dot-ind.on { width: 20px; background: #6e47ff; }
/* Workstation role badge */
.crm-role { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6e47ff; background: rgba(110, 71, 255, 0.1); border: 1px solid rgba(110, 71, 255, 0.2); border-radius: 999px; padding: 2px 7px; }
@media (prefers-reduced-motion: reduce) { .crm-track { transition: none; } }

/* ---- Demo slide: live website preview (scaled desktop, non-interactive) ---- */
.site-demo { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.site-bar { flex: none; height: 36px; background: linear-gradient(180deg,#f6f1ff,#efe9fc); border-bottom: 1px solid #e4dffa; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.site-dots { display: inline-flex; gap: 6px; flex: none; }
.site-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.site-dots i:nth-child(1){background:#ff6159} .site-dots i:nth-child(2){background:#ffbd2e} .site-dots i:nth-child(3){background:#28c840}
.site-url { font-size: 11px; color: #7a7588; background: #fff; border: 1px solid #e4dffa; border-radius: 999px; padding: 3px 12px; flex: 1; min-width: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-screen { flex: 1; position: relative; overflow: hidden; background: #fff; }
.site-frame { position: absolute; top: 0; left: 0; width: 1440px; height: 2400px; border: 0; transform-origin: top left; transform: scale(var(--sscale, 0.42)); pointer-events: none; }

/* ---- Swipe caption: tells the viewer which demo they're looking at ---- */
.crm-capbar { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 7px; pointer-events: none; }
.crm-caption { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .01em; color: #fff; background: rgba(20, 18, 32, 0.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 5px 14px; box-shadow: 0 8px 22px -6px rgba(0,0,0,0.45); white-space: nowrap; transition: opacity .25s ease; }
.crm-caption .cap-ic { font-size: 13px; vertical-align: -2px; margin-right: 5px; opacity: .85; }

/* ==========================================================================
   Demo 2 — Command Center (dark) — mirrors app.vidatech.org
   ========================================================================== */
.ws { position: absolute; inset: 0; display: flex; background: #0b0b11; color: #ededf2; font-family: 'Inter', sans-serif; text-align: left; overflow: hidden; }
.ws-side { flex: 0 0 142px; background: #0e0e15; border-right: 1px solid #1d1d27; display: flex; flex-direction: column; padding: 14px 10px; }
.ws-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: #fff; margin-bottom: 11px; }
.ws-brand-badge { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #28C6C8, #2E6FE8); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #fff; flex: none; }
.ws-search { font-size: 11px; color: #6a6a78; background: #15151e; border: 1px solid #22222e; border-radius: 9px; padding: 6px 9px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.ws-navhead { font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #54546a; margin: 9px 6px 3px; }
.ws-nav { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12px; font-weight: 500; color: #a6a6b4; }
.ws-nav .material-symbols-outlined { font-size: 16px; color: #6e6e80; }
.ws-nav.active { background: rgba(245, 158, 11, 0.10); color: #f5b942; }
.ws-nav.active .material-symbols-outlined { color: #f5b942; }
.ws-spacer { flex: 1; }
.ws-presence { font-size: 10px; color: #6a6a78; display: flex; align-items: center; gap: 6px; padding: 6px; border-top: 1px solid #1d1d27; margin-top: 6px; }
.ws-presence .ws-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex: none; }

.ws-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 20px 22px; gap: 13px; overflow: hidden;
  background: radial-gradient(120% 80% at 82% 0%, rgba(46, 111, 232, 0.08), transparent 55%), #0b0b11; }
.ws-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #2dd4bf; }
.ws-eyebrow .ws-eyedot { width: 6px; height: 6px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 8px #2dd4bf; }
.ws-greet { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -0.025em; color: #fff; line-height: 1; }
.ws-sub { font-size: 12px; color: #8a8a99; line-height: 1.5; max-width: 48ch; }

.ws-kpis { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 9px; }
.ws-kpi { position: relative; background: #13131b; border: 1px solid #23232f; border-radius: 13px; padding: 12px 12px 9px; }
.ws-cdot { position: absolute; top: 12px; right: 12px; width: 6px; height: 6px; border-radius: 50%; }
.ws-cdot.g { background: #22c55e; } .ws-cdot.a { background: #f59e0b; } .ws-cdot.p { background: #8b5cf6; } .ws-cdot.t { background: #2dd4bf; }
.ws-klbl { font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #6a6a7c; }
.ws-kval { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 21px; color: #fff; margin-top: 5px; letter-spacing: -0.02em; line-height: 1; transition: color .25s ease; }
.ws-kopen { font-size: 9px; color: #5b5b6e; margin-top: 6px; }
.ws-kpi.flash { animation: wsFlash 1s ease; }
.ws-kpi.flash .ws-kval { color: #34d399; }
@keyframes wsFlash { 0% { border-color: #23232f; } 25% { border-color: rgba(52,211,153,.5); background: #122019; } 100% { border-color: #23232f; } }

.ws-pulsehead { display: flex; align-items: baseline; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6a6a7c; }
.ws-pulsehead span { font-size: 9px; letter-spacing: .01em; text-transform: none; color: #54546a; }
.ws-feed { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 88%, transparent 100%); }
.ws-card { background: #13131b; border: 1px solid #23232f; border-left: 2px solid #2dd4bf; border-radius: 11px; padding: 10px 13px; margin-bottom: 8px; }
.ws-card.dec { border-left-color: #f59e0b; } .ws-card.won { border-left-color: #22c55e; } .ws-card.ag { border-left-color: #8b5cf6; }
.ws-card .tag { font-size: 8.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #2dd4bf; display: flex; align-items: center; gap: 4px; }
.ws-card.dec .tag { color: #f5b942; } .ws-card.won .tag { color: #34d399; } .ws-card.ag .tag { color: #a78bfa; }
.ws-card .tag .material-symbols-outlined { font-size: 13px; }
.ws-card .nm { font-size: 12.5px; font-weight: 600; color: #ededf2; margin-top: 4px; }
.ws-card .mt { font-size: 10px; color: #7a7a8a; margin-top: 2px; }

.ws-agentbar { display: flex; align-items: center; gap: 9px; background: #15151e; border: 1px solid #262633; border-radius: 12px; padding: 9px 10px; color: #6a6a7c; font-size: 12px; flex: none; }
.ws-agentbar > .material-symbols-outlined { font-size: 17px; color: #2dd4bf; }
.ws-send { margin-left: auto; width: 24px; height: 24px; border-radius: 7px; background: #2dd4bf; display: flex; align-items: center; justify-content: center; flex: none; }
.ws-send .material-symbols-outlined { font-size: 15px; color: #06281f; }

@media (max-width: 1023px) {
  .ws-side { flex-basis: 124px; }
  .ws-main { padding: 16px 16px; gap: 11px; }
  .ws-greet { font-size: 25px; }
  .ws-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .ws-side { flex-basis: 108px; padding: 12px 7px; }
}
@media (prefers-reduced-motion: reduce) { .ws-feed { -webkit-mask-image: none; mask-image: none; } }

/* Desktop nav: give the full 8-link bar room so labels never wrap/scrunch.
   The full bar needs ~1220px of content, so it only appears at >=1280px;
   below that the tidy hamburger dropdown is used instead (see mobile-nav block). */
@media (min-width: 1280px) {
  header.fixed { padding-left: 24px; padding-right: 24px; }
  header nav.glass-morphism { max-width: 1400px; padding-left: 1.5rem; padding-right: 1.5rem; }
  header nav > div:first-child { gap: 1.5rem; }                    /* logo ↔ links group */
  header nav > div:first-child > div:last-child { gap: 1.35rem; } /* between nav links */
  header nav .nav-link,
  header nav > div:last-child a { white-space: nowrap; }
}

/* ==========================================================================
   Mobile navigation (hamburger dropdown) — injected by site.js
   Mirrors the desktop nav links; matches the glass-morphism pill aesthetic.
   ========================================================================== */
.vt-mnav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #1b192c;
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease;
}
.vt-mnav-toggle:hover { background: rgba(110, 71, 255, 0.08); }
.vt-mnav-toggle:active { background: rgba(110, 71, 255, 0.14); }
.vt-mnav-toggle .material-symbols-outlined { font-size: 30px; line-height: 1; }

.vt-mnav-panel {
  position: absolute;   /* out of flow so the fixed header doesn't grow tall and eat taps */
  top: 100%;
  left: 0;
  right: 0;
  max-width: 1280px;
  margin: 12px auto 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 24px 60px -18px rgba(27, 25, 44, 0.35);
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .24s cubic-bezier(.22, 1, .36, 1);
}
.vt-mnav-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.vt-mnav-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 14px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: #1b192c;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.vt-mnav-panel a:hover,
.vt-mnav-panel a:active { background: rgba(110, 71, 255, 0.08); color: #6e47ff; }
.vt-mnav-panel a[aria-current="page"] { color: #6e47ff; background: rgba(110, 71, 255, 0.06); }
.vt-mnav-divider { height: 1px; background: rgba(27, 25, 44, 0.08); margin: 8px 12px; }
.vt-mnav-panel a.vt-mnav-cta {
  justify-content: center;
  margin-top: 4px;
  background: #1b192c;
  color: #fcf8ff;
  font-weight: 700;
}
.vt-mnav-panel a.vt-mnav-cta:hover { background: #6e47ff; color: #fff; }

/* Show hamburger + hide the full desktop nav below 1280px (avoids the cramped
   8-link "dead zone" between the lg breakpoint and where the full bar fits). */
@media (max-width: 1279px) {
  .vt-mnav-toggle { display: inline-flex; }
  .vt-hide-mobile { display: none !important; }
  header nav > div:first-child > div:last-child { display: none !important; } /* desktop links */
}
@media (min-width: 1280px) {
  .vt-mnav-panel { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .vt-mnav-panel { transition: opacity .15s ease; transform: none; }
  .vt-mnav-panel.open { transform: none; }
}

/* ==========================================================================
   Demos page — live site embeds in a browser-chrome frame
   ========================================================================== */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 1024px) {
  .demo-grid.two { grid-template-columns: 1fr 1fr; }
}

.demo-card {
  display: flex;
  flex-direction: column;
}
.demo-card-wide { max-width: 1000px; margin: 0 auto; width: 100%; }

/* Browser window */
.demo-window {
  background: #ffffff;
  border: 1px solid #e4dffa;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(27, 25, 44, 0.45);
  transition: box-shadow .3s ease, transform .3s ease;
}
.demo-card:hover .demo-window {
  box-shadow: 0 34px 80px -30px rgba(110, 71, 255, 0.4);
  transform: translateY(-3px);
}

/* Chrome bar (also acts as a scroll grab-area on mobile) */
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #f6f1ff 0%, #efe9fc 100%);
  border-bottom: 1px solid #e4dffa;
}
.demo-dots { display: inline-flex; gap: 7px; flex: none; }
.demo-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.demo-dots i:nth-child(1) { background: #ff6159; }
.demo-dots i:nth-child(2) { background: #ffbd2e; }
.demo-dots i:nth-child(3) { background: #28c840; }
.demo-url {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b6580;
  background: #ffffff;
  border: 1px solid #e4dffa;
  border-radius: 999px;
  padding: 5px 14px;
}
.demo-chrome-open {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  color: #6e47ff;
  text-decoration: none;
  transition: background .15s ease;
}
.demo-chrome-open:hover { background: rgba(110, 71, 255, 0.1); }
.demo-chrome-open .material-symbols-outlined { font-size: 19px; }

/* The live screen */
.demo-screen {
  position: relative;
  width: 100%;
  height: 460px;
  background: #fcf8ff;
}
.demo-screen-tall { height: 520px; }
@media (min-width: 1024px) {
  .demo-screen { height: 500px; }
  .demo-screen-tall { height: 640px; }
}
.demo-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  -webkit-overflow-scrolling: touch;
}

/* Meta below the window */
.demo-meta { padding: 22px 6px 0; }
.demo-titlerow { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.demo-titlerow h3 { font-size: 1.5rem; font-weight: 800; color: #1b192c; letter-spacing: -0.02em; }
.demo-chip {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e47ff;
  background: rgba(110, 71, 255, 0.1);
  border: 1px solid rgba(110, 71, 255, 0.18);
  border-radius: 999px;
  padding: 4px 11px;
}
.demo-meta p { color: #484456; font-size: 1rem; line-height: 1.6; max-width: 56ch; margin-bottom: 16px; }
.demo-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1b192c;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 12px;
  border: 1.5px solid #1b192c;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.demo-open-btn:hover { background: #6e47ff; color: #fff; border-color: #6e47ff; }
.demo-open-btn span { transition: transform .18s ease; }
.demo-open-btn:hover span { transform: translate(2px, -2px); }
